package com.example.judgepaper.mapper;


import com.sun.org.apache.xerces.internal.impl.xpath.XPath;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface StudentStateChangeMapper {

    /**
     * 更新学生试卷批阅状态
     * @param studentId
     * @param testId
     * @param status
     * @return
     */
    boolean updateStudentState(@Param("studentid") String studentId,
                               @Param("testid") String testId,
                               @Param("status") int status);

    boolean updateClassState(@Param("teacherid") String teacherId,
                             @Param("testid") String testId,
                             @Param("status") String status);
}
